<template>
  <j-modal
    :title="title"
    :width="1400"
    :visible="visible"
    switchFullscreen
    @ok="handleOk"
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel"
    cancelText="关闭">
    <hf-pm-project-risks-by-project-id-list ref='hfPmProjectRisksByProjectIdList'></hf-pm-project-risks-by-project-id-list>
  </j-modal>

</template>

<script>
import HfPmProjectRisksByProjectIdList from '@views/hifar/pm/HfPmProjectRisksByProjectIdList'
export default {
  name: 'PmProjectRiskListModel',
  components: {
    HfPmProjectRisksByProjectIdList
  },
  data() {
    return {
      title: '',
      width: 1000,
      visible: false,
      disableSubmit: true,
    }
  },
  methods: {
    handleOk() {
    },
    handleCancel() {
      this.close()
    },
    close () {
      this.$emit('close');
      this.visible = false;
    },
    queryRisk(record) {
      this.visible = true
      this.$nextTick(() => {
        let projectId = record.id
        this.$refs.hfPmProjectRisksByProjectIdList.getListByProjectId(projectId)
      })
    }
  }

}
</script>

<style scoped>

</style>